package com.zhangjie.yygh;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangjie.model.user.Patient;
import com.zhangjie.yygh.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class aa {
    @Autowired
    private static PatientService patientService;

    public static void main(String[] args) {
        QueryWrapper<Patient> wrapper = new QueryWrapper<>();
        wrapper.eq("user_id",19);
        BaseMapper<Patient> baseMapper = patientService.getBaseMapper();
        List<Patient> list = baseMapper.selectList(wrapper);
        System.out.println(list.size());
    }




}
